<?php
/**
{
    "courseMainId": "INT //主类ID",
    "courseMain": "VARCHAR //课程主类@search; ",
    "courseMainDesc": "VARCHAR //主类描述",
    "status": "TINYINT //状态@status; 3::有效::@admin; 88::删除::@admin; ",
    "sort": "INT //排序"
}
 */

class CourseMain extends Base
{
    
	private $courseMainId= '';//主类ID
	private $courseMain= NULL;//课程主类@search;
	private $courseMainDesc= NULL;//主类描述
	private $status= "3";//状态@status;3::有效::@admin;88::删除::@admin;
	private $sort= "0";//排序

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_course_main';
    }
    
    public  function key(){
        return 'courseMainId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'CourseMain';
    }
    
    public  function field()
    {
        return array (  'courseMainId' =>   array (    0 => 'INT',    1 => 11,    2 => '主类ID',  ),  'courseMain' =>   array (    0 => 'VARCHAR',    1 => 128,    2 => '课程主类@search;',  ),  'courseMainDesc' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '主类描述',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;88::删除::@admin;',  ),  'sort' =>   array (    0 => 'INT',    1 => 11,    2 => '排序',  ),);
    }


}